package com.jeff;

public class StartUp {
  public int num= 8;
  static int nam= 8;
  public StartUp(String... p){
	System.out.println("works from constructor!"+num);
  }
  static void test(int n){
	System.out.println("non-static variable num cannot be referenced from a static context");
	nam=n;
  }
  private void test2(int n){
	System.out.println("non-static method test2(int) cannot be referenced from a static context");
	num=n;
  }
  public static void main(String[] args) {
	StartUp s = new StartUp();
	s.test2(9);
  }
}